package com.ruoyi.cderp.domain;

import java.util.List;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 生产领料对象 production_picking
 *
 * @author wzy
 * @date 2025-06-11
 */
public class ProductionPicking extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键ID */
    private String id;

    /** 领料单号 */
    @Excel(name = "领料单号")
    private String pickingNo;

    /** 生产工单ID */
    @Excel(name = "生产工单ID")
    private String orderId;

    /** 生产工单号 */
    @Excel(name = "生产工单号")
    private String orderNo;

    @Excel(name = "产品名称")
    private String productName;



    /** 领料时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "领料时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date pickingTime;

    // 创建最早时间
    private Date pickingMinTime;

    // 创建最晚时间
    private Date pickingMaxTime;

    /** 状态(0:待领料,1:已领料,2:已取消) */
    @Excel(name = "状态(0:待领料,1:已领料,2:已取消)")
    private Integer status;

    /** 生产领料明细信息 */
    private List<ProductionPickingItem> productionPickingItemList;


    public String getProductName() {
        return productName;
    }

    public void setProductName(String productName) {
        this.productName = productName;
    }

    public Date getPickingMinTime() {
        return pickingMinTime;
    }

    public void setPickingMinTime(Date pickingMinTime) {
        this.pickingMinTime = pickingMinTime;
    }

    public Date getPickingMaxTime() {
        return pickingMaxTime;
    }

    public void setPickingMaxTime(Date pickingMaxTime) {
        this.pickingMaxTime = pickingMaxTime;
    }

    public void setId(String id)
    {
        this.id = id;
    }

    public String getId()
    {
        return id;
    }
    public void setPickingNo(String pickingNo)
    {
        this.pickingNo = pickingNo;
    }

    public String getPickingNo()
    {
        return pickingNo;
    }
    public void setOrderId(String orderId)
    {
        this.orderId = orderId;
    }

    public String getOrderId()
    {
        return orderId;
    }
    public void setOrderNo(String orderNo)
    {
        this.orderNo = orderNo;
    }

    public String getOrderNo()
    {
        return orderNo;
    }
    public void setPickingTime(Date pickingTime)
    {
        this.pickingTime = pickingTime;
    }

    public Date getPickingTime()
    {
        return pickingTime;
    }
    public void setStatus(Integer status)
    {
        this.status = status;
    }

    public Integer getStatus()
    {
        return status;
    }

    public List<ProductionPickingItem> getProductionPickingItemList()
    {
        return productionPickingItemList;
    }

    public void setProductionPickingItemList(List<ProductionPickingItem> productionPickingItemList)
    {
        this.productionPickingItemList = productionPickingItemList;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("pickingNo", getPickingNo())
            .append("orderId", getOrderId())
            .append("orderNo", getOrderNo())
            .append("pickingTime", getPickingTime())
            .append("status", getStatus())
            .append("remark", getRemark())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("productionPickingItemList", getProductionPickingItemList())
            .toString();
    }
}
